package com.whitecat.voting.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.whitecat.voting.constant.Province;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

@Getter
@Setter
@ApiModel(value = "WorkParam", description = "参赛作品参数")
@JsonIgnoreProperties(ignoreUnknown = true)
public class WorkParam {

    @ApiModelProperty(name = "name", value = "参赛者姓名。", example = "张三")
    @NotNull
    private String name;

    @ApiModelProperty(name = "introduction", value = "自我介绍/参赛宣言。", example = "大家好，我叫张三，性别男，爱好女。")
    @NotNull
    private String introduction;

    @ApiModelProperty(name = "region", value = "区域。", example = "GD")
    @NotNull
    private Province region;
}